import { createEffect } from "solid-js";

const AlertError = (err: Error) => {
  createEffect(() => {
    if (err) {
      console.error(err);
    }
  });

  return <div class="alert alert-danger">{err.message}</div>;
};

export default AlertError;
